define(function(require, exports, module) {

  var Backbone = require('backbone');
  var $ = require('jquery');
  var _ = require('underscore');
  var jsonview = require('jsonview');

  require('css!../css/style.css');

  function app() {
    var $app = $('<div id="app">');
    $('#main').html($app);

    require('jqueryui');
    require('css!http://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.css');

    var tmpl = require('text!../tmpl.html');
    $app.html(tmpl);

    var $elem = $('.transform-zone');

    require('../component/dialog')($elem);
    require('../component/draggable')($elem);
    require('../component/menu')($elem);
    require('../component/resizable')($elem);
    require('../component/sortable')($elem);
    require('../component/tabs')($elem);
    require('../component/tooltip')($elem);
  }

  return app;
})
